/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const systemManagement = {
  path: '/systemManagement',
  component: Layout,
  redirect: 'noRedirect',
  name: '系统设置',
  alwaysShow: true,
  meta: {
    title: '系统设置',
    icon: 'guide',
    roles: [
      '/systemManagement/roleManagement',
      '/systemManagement/userManagement',
      '/systemManagement/logs',
      '99999'
    ]
  },
  children: [
    {
      path: 'roleManagement',
      component: () => import('@/views/systemManagement/roleManagement/index'),
      name: 'roleManagement',
      meta: { title: '角色管理', noCache: true, roles: ['/systemManagement/roleManagement', '99999'] }
    },
    {
      path: 'userManagement',
      component: () => import('@/views/systemManagement/userManagement/index'),
      name: 'userManagement',
      meta: { title: '用户管理', noCache: true, roles: ['/systemManagement/userManagement', '99999'] }
    },
    {
      path: 'accessManagement',
      component: () => import('@/views/systemManagement/accessManagement/index'),
      name: 'accessManagement',
      meta: { title: '菜单管理', noCache: true, roles: ['/systemManagement/accessManagement', '99999'] }
    },
    {
      path: 'logs',
      component: () => import('@/views/systemManagement/logs/index'),
      name: 'logs',
      meta: { title: '登录日志', noCache: true, roles: ['/systemManagement/logs', '99999'] }
    }
  ]
}

export default systemManagement
